Skip to content

fix(results): draw the bar track dark in Chromium dark mode - #3985

Open
AndyScherzinger wants to merge 1 commit into
mainfrom
fix/results-bar-track-dark
Open

AndyScherzinger wants to merge 1 commit into
mainfrom
fix/results-bar-track-dark

Conversation

@AndyScherzinger

@AndyScherzinger AndyScherzinger commented Nov 22, 2026 •

Copy link
Copy Markdown
Member

Problem

In Chromium-based browsers (Chrome, Edge, Brave and others) the track of every bar in the results summary is nearly white in dark mode, so the bars look like bright stripes. Firefox shows the intended dark track.

The results style gives the <meter> element itself a background, but Chromium draws the track with its own ::-webkit-meter-bar pseudo-element, whose default is a light gradient. Our rule for that pseudo-element only set its height.

Change

::-webkit-meter-bar in ResultsSummary.vue gets the same background (--color-background-dark) and radius as the meter, so the track follows the theme in every browser. Firefox and light mode look the same as before.

Screenshots

Chromium, dark mode Before After
Results bars forms-pr3985-results-bars-before-dark forms-pr3985-results-bars-after-dark

How to verify

  1. Open the results of a form with answers in Chrome or Edge with the dark theme (or the system dark mode).
  2. Before: the bar tracks are nearly white. After: they are dark grey, like in Firefox.
  3. Light mode and Firefox are unchanged.

🤖 AI (if applicable)

  • The content of this PR was partly or fully generated using AI

The results bars only gave the meter element itself a background.
Chromium and other Blink browsers draw the track with their own
::-webkit-meter-bar style, a light gradient, so in dark mode every bar
had a nearly white track, while Firefox showed the dark one. The track
pseudo-element now gets the same background and radius as the meter.

Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
@AndyScherzinger AndyScherzinger added this to the 5.5 milestone Nov 22, 2026
@AndyScherzinger AndyScherzinger added bug Something isn't working backport-request Pending backport by the backport-bot 3. to review Waiting for reviews feature: 📊 responses & statistics AI assisted labels Nov 22, 2026
@AndyScherzinger

Copy link
Copy Markdown
Member Author

/backport to stable5.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews AI assisted backport-request Pending backport by the backport-bot bug Something isn't working feature: 📊 responses & statistics

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant